package self.hoy.demo.grainmall.ware.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import self.hoy.demo.common.ServiceProviderName;
import self.hoy.demo.common.utils.R;

/**
 * @author hyh
 * @date 2020/7/18
 */
@FeignClient("grain-mall-gateway")
//@FeignClient(ServiceProviderName.PRODUCT)
public interface ProductFeignService {
    /**
     * 查询商品sku信息
     * @param skuId
     * @return
     */
    @GetMapping("/api/product/skuinfo/info/{skuId}")
//    @GetMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);
}
